<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/mui.picker.min.css" />
		<link rel="stylesheet" href="../../css/iconfont.css">
		<style>
			.mui-content-padded{margin:5px 0 0 0;}
			.mui-row-list span{float: left; line-height:33px; width:20%;}
			.mui-row-list select{float: left; line-height:14px; font-size:14px; margin-top:2px; margin-left: 5px;}
			.mui-btn-block{margin-bottom:0; padding:6px;}
			.mui-col-sm-12{ border-top: 1px solid #D1D1D1; width:100%; padding-top:5px; font-size:14px;}
			input{text-align: left;}
			input[type="text"]{height:30px; margin-bottom: 5px;}
			input[type="text"],input[type="number"]{height:26px; padding: 0;border-width:0; border-bottom: #dddddd 1px solid; margin-bottom:0;background:none;}
			input[readonly="readonly"]{ text-align: left; padding-left: 5px; padding-right: 0;}
			input{border-width: 0; height: 26px; float: right; text-align: right; padding-right: 15px;}
			form:before{ background: none !important; border: none !important;}
			
			.mui-switch:before {content: '无'; color: #fff; }
			.mui-switch{border-color: #fd933b; background-color: #007AFF; border-width: 0px;}
			.mui-switch.mui-active:before {content: '有'; color: #fff;}
			.mui-switch.mui-active {border-color: #007AFF; background-color: #fd933b;}
			
			.mui-switch.new1:before {content: '无'; color: #fff;}
			.mui-switch.new1{border-color: #fd933b; background-color: #007AFF; border-width: 0px;}
			.mui-switch.mui-active.new1:before {content: '有'; color: #fff;}
			.mui-switch.mui-active.new1 {border-color: #007AFF; background-color: #fd933b;}
			
			.mui-switch.new2:before {content: '未见异常'; color: #fff;}
			.mui-switch.new2{border-width: 1px; width:95px;border-color: #007AFF;background-color: #007AFF;}
			.mui-switch.mui-active.new2:before {content: '异常'; color: #fff;}
			.mui-switch.mui-active.new2 {border-color: #fd933b;background-color: #fd933b;}
			.mui-switch.mui-active.new2 .mui-switch-handle{
				-webkit-transform: translate(63px,0);
				transform: translate(63px,0);
			}
			
			.mui-table-view-cell.mui-active{ display:block;}
			.mui-table-view-cell-1{padding: 5px 15px; position: relative; overflow: hidden;}
			.border0{border-width: 0; border-bottom: #dddddd 1px solid;}
			.ui-alert{font-size: 14px;}
			#Popup {
				width: 0px;
				height: 0px;
				background: red;
				position: fixed;
				top: 70%;
				left: 50%;
			}
			.mui-popover{
				width: 300px;
			}
			.mui-popover .mui-popover-arrow:after {
				width: 0px;
			}
			/**/

			/**/
			.popover-cont ul{
				margin-top: 5px; 
				margin: 0; 
				padding: 0; 
				list-style: none; 
				background: #ffffff;
			}
			.table{
				width: 100%;
			}
			.thead{
				width: 100%;
				border: 1px solid #007AFF;
			}
			.thead tr{
				 width: 100%; 
				 background-color: #007AFF;
				 height: 20px;
			}
			.thead tr th{
				color: #ffffff;
				border-right: 1px solid #ffffff;
				text-align: center;
				font-family: "microsoft yahei";
				font-size: 14px;
				line-height: 20px;
			}
			.tbody{
				width: 100%;
				border: 1px solid #007AFF;
			}
			.tbody tr{
				 width: 100%; 
				 height: 20px;
			}
			.tbody tr td{
				color: #000;
				border: 1px solid #007AFF;
				text-align: center;
				font-family: "microsoft yahei";
				font-size: 14px;
				line-height: 20px;
			}
			.div-tab{
				width: 100%; 
				height: 200px; 
				overflow-y: scroll;
			}
			.div-tab::-webkit-scrollbar {
				display: none;
			}
			.submit{
				margin:0 auto 10px auto; 
				width:200px; 
				height:35px; 
				line-height: 35px; 
				background-color:#007AFF; 
				text-align: center; 
				color: #FFFFFF; 
				border-radius: 10px;
			}
			.mui-ul-check{ width: 100%; margin: 0; padding: 0;}
			.mui-ul-check li{float: left; list-style-type:none; text-align: center; padding:5px; margin:2px; border:1px solid #D1D1D1;}
			.mui-ul-check li.on{ background-color:#007AFF; color:#FFFFFF; float: left; list-style-type:none; text-align: center; padding:5px; margin:2px;}
			.disable{color: #bbb;}
		</style>
	</head>
	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title" id="high_id">新生儿家庭访视记录</h1>
		</header>
		<div class="mui-conten" style="margin-top:50px;">
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">父亲姓名</div>
							<input  id='fa_name' class="ui-alert border0"  placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">职业</div>
							<input  id='fa_professional' class="ui-alert border0"  placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">联系电话</div>
							<input  id='fa_tel' class="ui-alert border0" type="number" placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">出生日期</div>
								<input id="result0" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
					</div>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">母亲姓名</div>
							<input  id='mo_name' class="ui-alert border0"  placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">职业</div>
							<input  id='mo_professional' class="ui-alert border0"  placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">联系电话</div>
							<input  id='mo_tel' class="ui-alert border0" type="number" placeholder="" style="float: right; width:50%;"/>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">出生日期</div>
								<input id="result1" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
					</div>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-row">
					<div class="mui-col-sm-12 mui-col-xs-12">
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width:90px; line-height: 26px;">出生孕周</div>
							<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">周</div>
							<input  id='week' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
						</li>
						<li class="mui-table-view-cell">
							<a data-options='{"type":"date"}' class="btn mui-navigate-right">
								<div style="float: left; font-size: 14px; width: 130px; line-height: 26px;">母亲妊娠期患病情况</div>
								<input id="result2" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
							</a>
						</li>
						<li class="mui-table-view-cell" style="display: none;" id="other2_op">
							<input id='other2_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
						</li>
						<li class="mui-table-view-cell">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">助产机构</div>
							<input  id='midwifery' class="ui-alert border0"  placeholder="" style="float: right; width:50%;"/>
						</li>
					</div>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">出生情况</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry_1">
							<li value="318">顺产</li>
							<li value="319">胎头吸引</li>
							<li value="320">产钳</li>
							<li value="321">剖宫</li>
							<li value="322">双多胎</li>
							<li value="323">臀位</li>
							<li value="482" text ="出生情况其他">其他</li>
						</ul>
					</li>
					<li class="mui-table-view-cell" id="check1_id" style="display: none;">
						<input value="" id="check1" class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">新生儿窒息</div>
						<div class="mui-switch" id="mySwitch0">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">Apgar评分:</div>
							<input id="result3" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">畸形</div>
						<div class="mui-switch" id="mySwitch1">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_1" style="display: none;">
						<input class="ui-alert border0" id="doc_1"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">新生儿听力筛查</div>
							<input id="result4" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">新生儿疾病筛选</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry_2">
							<li value="633" id="wu-2">未进行</li>
							<li value="682" id="wu-2-1">检查均阴性</li>
							<li value="487">甲低</li>
							<li value="489">苯丙酮尿症</li>
							<li value="490" text ="其他遗传代谢病">其他遗传代谢病</li>
						</ul>
					</li>
					<li class="mui-table-view-cell" id="check2_id" style="display: none;">
						<input id="check2" class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">新生儿出生体重</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">kg</div>
						<input  id='kg' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">目前体重</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">kg</div>
						<input  id='kgn' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">出生身长</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">cm</div>
						<input  id='cm' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">喂养方式</div>
							<input id="result5" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">吃奶量</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">ml/次</div>
						<input  id='milk' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">吃奶次数</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">次/日</div>
						<input  id='milk_n' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">呕吐</div>
						<div class="mui-switch" id="mySwitch2">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">大便</div>
							<input id="result6" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other6_op">
						<input id='other6_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">大便次数</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">次/日</div>
						<input id='defecate' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">体温</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">°C</div>
						<input id='temperature' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">心率</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">次/分钟</div>
						<input  id='heart' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:100px; line-height: 26px;">呼吸频率</div>
						<div style="float: right; font-size: 14px; width: 50px; line-height: 26px; text-align:center;">次/分钟</div>
						<input  id='breath' class="ui-alert border0" type="number" placeholder="" style="float:right; width:110px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">面色</div>
							<input id="result7" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other7_op">
						<input id='other7_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">黄疸部位</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry_3">
							<li value="56" id="wu-3">无</li>
							<li value="493">面部</li>
							<li value="494">躯干</li>
							<li value="495">四肢</li>
							<li value="496">手足</li>
						</ul>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:40px; line-height: 26px;">前卤</div>
						<a data-options='{"type":"date"}' class="btn mui-navigate-right" style="float: right; width: 100px;">
							<input id="result8" class="ui-alert"  placeholder="请选择" style="width:80%; float: right; margin: 0px;"/>
						</a>
						<div style="float: right; font-size: 14px; width: 26px; line-height: 26px; text-align:left;">cm</div>
						<input id='halogen_2' class="ui-alert border0" type="number" onkeyup="if(value>100)value=100" style="float:right; width:80px; text-align:center;"/>
						<div style="float: right; font-size: 14px; width: 26px; line-height: 26px; text-align:left;">cm</div>
						<input id='halogen_1' class="ui-alert border0" type="number" onkeyup="if(value>100)value=100" style="float:right; width:80px; text-align:center;"/>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other8_op">
						<input id='other8_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">眼睛</div>
						<div class="mui-switch new2" id="mySwitch3">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_3" style="display: none;">
						<input class="ui-alert border0" id="doc_3"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">四肢活动度</div>
						<div class="mui-switch new2" id="mySwitch4">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_4" style="display: none;">
						<input class="ui-alert border0" id="doc_4"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">耳外观</div>
						<div class="mui-switch new2" id="mySwitch5">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_5" style="display: none;">
						<input class="ui-alert border0" id="doc_5"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">颈部包块</div>
						<div class="mui-switch" id="mySwitch6">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_6" style="display: none;">
						<input class="ui-alert border0" id="doc_6"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">鼻</div>
						<div class="mui-switch new2" id="mySwitch7">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_7" style="display: none;">
						<input class="ui-alert border0" id="doc_7"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">胸部</div>
						<div class="mui-switch new2" id="mySwitch8">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_8" style="display: none;">
						<input class="ui-alert border0" id="doc_8"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">皮肤</div>
							<input id="result9" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other9_op">
						<input id='other9_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">口腔</div>
						<div class="mui-switch new2" id="mySwitch9">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_9" style="display: none;">
						<input class="ui-alert border0" id="doc_9"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">肛门</div>
						<div class="mui-switch new2" id="mySwitch10">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_10" style="display: none;">
						<input class="ui-alert border0" id="doc_10"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">心肺听诊</div>
						<div class="mui-switch new2" id="mySwitch11">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_11" style="display: none;">
						<input class="ui-alert border0" id="doc_11"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">外生殖器</div>
						<div class="mui-switch new2" id="mySwitch12">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_12" style="display: none;">
						<input class="ui-alert border0" id="doc_12"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">腹部触诊</div>
						<div class="mui-switch new2" id="mySwitch13">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_13" style="display: none;">
						<input class="ui-alert border0" id="doc_13"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:14px;">脊椎</div>
						<div class="mui-switch new2" id="mySwitch14">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_14" style="display: none;">
						<input class="ui-alert border0" id="doc_14"  placeholder="请输入" style="float: left; width:100%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">脐带</div>
							<input id="result10" class="ui-alert"  placeholder="请选择" style="width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="other10_op">
						<input id='other10_text' class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:16px;">转诊建议</div>
						<div class="mui-switch new1" id="mySwitch15">
						  <div class="mui-switch-handle"></div>
						</div>
						<li class="mui-table-view-cell" id="zz" style="display: none;">
							<div style="float: left; width:100%;">
								<div style="float: left; font-size: 16px; width:50px; text-align:center;">原因:</div>
								<input id='zz_why' class="ui-alert border0"  placeholder="请输入" style="width:60%; float:right;"/>
							</div>
							<div style="float: left; width:100%;">
								<div style="float: left; font-size: 16px; width:90px; text-align:center;">机构及科室:</div>
								<input id='zz_det' class="ui-alert border0"  placeholder="请输入" style="width:60%; float:right;"/>
							</div>
						</li>
					</li>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">指导</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry_4">
							<li value="504">喂养指导</li>
							<li value="505">发育指导</li>
							<li value="506">防病指导</li>
							<li value="507">预防伤害指导</li>
							<li value="508">口腔保健指导</li>
							<li value="111" text ="指导其他">其他</li>
						</ul>
					</li>
					<li class="mui-table-view-cell" id="zd_id" style="display: none;">
						<input id="zd" class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<div style="clear:both; font-size: 16px; line-height:25px; margin-left:15px; margin-top: 5px;">中医服务</div>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<ul class="mui-ul-check" id="ularry_5">
							<li value="600">中医饮食调养指导</li>
							<li value="601">中医起居调摄指导</li>
							<li value="602">传授摩腹、捏脊方法</li>
							<li value="482" text ="中医其他">其他</li>
						</ul>
					</li>
					<li class="mui-table-view-cell" id="zy_id" style="display: none;">
						<input id="zy" class="ui-alert border0"  placeholder="请输入其他" style="width:100%; float:right;"/>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">本次随访日期</div>
							<input  id='result11' name="Fill_date" class="ui-alert"  placeholder="请选择" style="float: right; width:50%;"/>
						</a>
					</li>
					<li class="mui-table-view-cell">
						<div style="float: left; font-size: 14px; width:90px; line-height: 26px;">下次随访地点</div>
						<input class="ui-alert border0" id="place"  placeholder="请输入" style="float: right; width:70%; text-align: right; padding: 0 10px;"/>
					</li>
					<li class="mui-table-view-cell">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<div style="float: left; font-size: 14px; width: 90px; line-height: 26px;">下次随访日期</div>
							<input  id='result12' name="Fill_date" class="ui-alert"  placeholder="请选择" style="float: right; width:50%;"/>
						</a>
					</li>
				</div>
			</ul>
			<ul class="mui-table-view" style="margin-top: 5px;">
				<div class="mui-col-sm-12 mui-col-xs-12">
					<li class="mui-table-view-cell">
						<div style="float: left; font-size:16px;">医生签名</div>
						<div class="mui-switch" id="mySwitch16">
						  <div class="mui-switch-handle"></div>
						</div>
					</li>
					<li class="mui-table-view-cell" id="tigshow_doc_1">
						<a data-options='{"type":"date"}' class="btn mui-navigate-right">
							<input id='result13' class="ui-alert"  placeholder="请选择" style="width:50%; text-align: right; float: right; padding-right: 15px;"/>
						</a>
					</li>
					<li class="mui-table-view-cell" style="display: none;" id="tigshow_doc_2">
						<div style="float: left; width:100%;">
							<div style="float: left; font-size: 16px; width:5rem; text-align:center;">医院</div>
							<input id='text-doc' class="ui-alert bottom_soild"  placeholder="请输入" style="width:60%; margin-left: 6px;"/>
						</div>
						<div style="float: left; width:100%;">
							<div style="float: left; font-size: 16px; width:5rem; text-align:center;">医生</div>
							<input id='text-hosp' class="ui-alert bottom_soild"  placeholder="请输入" style="width:60%; margin-left: 6px;"/>
						</div>
					</li>
				</div>
			</ul>
			<ul style="padding:10px 15px; margin: 0;">
				<p style="color: red; margin: 0;">
					提示：
					</br>
					若随方医生是省外的，则使用“填写”方式，手工输入随方医生信息。
					</br>
					若随方医生是省内的，则使用“选择”方式，选择对应医院和随方医生。
				</p>
			</ul>
			<div onclick="submit()" class="submit" >提交</div>
		</div>
		<script src="../../js/mui.js"></script>
		<script src="../../js/mui.picker.min.js"></script>
		<script src="../../js/jquery.min-1.11.1.js"></script>
		<script src="../../js/request.js"></script>
		<script type="text/javascript">
			var resultall = {"r1":[{value:'0',text:' '},{value:'56',text:'无'},{value:'44',text:'糖尿病'},{value:'486',text:'妊娠期高血压'},{value:'482',text:'其他'}],
			 				"r2":[{value:'0',text:' '},{value:'324',text:'1分钟'},{value:'325',text:'5分钟'},{value:'16',text:'不详'}],
			 				"r3":[{value:'0',text:' '},{value:'326',text:'通过'},{value:'327',text:'未通过'},{value:'328',text:'未筛查'},{value:'16',text:'不详'}],
			 				"r4":[{value:'0',text:' '},{value:'332',text:'纯母乳'},{value:'334',text:'混合'},{value:'333',text:'人工'}],
			 				"r5":[{value:'0',text:' '},{value:'491',text:'糊状'},{value:'192',text:'稀'},{value:'111',text:'其他'}],
			 				"r6":[{value:'0',text:' '},{value:'114',text:'红润'},{value:'138',text:'黄染'},{value:'482',text:'其他'}],
			 				"r7":[{value:'0',text:' '},{value:'149',text:'正常'},{value:'497',text:'膨隆'},{value:'498',text:'凹陷'},{value:'482',text:'其他'}],
			 				"r8":[{value:'0',text:' '},{value:'180',text:'未见异常'},{value:'499',text:'湿疹'},{value:'500',text:'糜烂'},{value:'482',text:'其他'}],
			 				"r9":[{value:'0',text:' '},{value:'501',text:'未脱'},{value:'502',text:'脱落'},{value:'503',text:'脐部有渗出'},{value:'482',text:'其他'}]}
			var id = 0,
				ehrId = "", //人口表ID
				visitLevel = 1,  //1、新生儿家庭访视   2、1岁以内儿童  3、1～2岁儿童健康检查 4、3～6岁儿童健康检查 
				doctorName = "", //责任医生姓名
				visitDate = "",  //本次随访日期
				nextDate = "", //下次随访日期
				createUser = "", //创建账号ID
				updateUser = "", //修改账号ID
				createDate = "", //创建日期
				updateDate = "", //修改日期
				enableFlag = 1, //状态 1：正常 3：删除
				doctorId = "", //责任医生员工ID
				doctorHospId = "", //随访医生归属医院ID
				ageMonth = "", //随访月龄 VISIT_LEVEL=1时 0表示新生儿 ；VISIT_LEVEL=2时 1为满月 2为3月龄 3为6月龄 4为8月龄；VISIT_LEVEL=3时  1为12月龄 2为18月龄 3为24月龄 4为30月龄；VISIT_LEVEL=4时 1为3岁 2为4岁 3为5岁 4为6岁 
				doctorHospName = "", //责任医生所属医院
				kindergarten = "", //集体体检时幼儿园名称
				xkSign = null, //所属系统标识
				versionNum = 2018, //版本号
				readcardCheck = 2;
			var listdata = "";
			var selfdata = "";
			var result0 = "",
				result1 = "",
				result2 = "0",
				result3 = "0",
				result4 = "0",
				result5 = "0",
				result6 = "0",
				result7 = "0",
				result8 = "",
				result9 = "0",
				result10 = "0",
				result11 = "0",
				result12 = "0",
				result13 = "";
			var newdate = new Date();
			var self1 = localStorage.getItem("name")
			var dataself = JSON.parse(self1)
			console.log(dataself)
			doctorName = dataself.obj.userName;//责任(评估)医生名字
			doctorId = dataself.obj.id;//责任(评估)医生id
			doctorHospId = dataself.obj.hospId;//责任(评估)医生医院id
			createHospId = dataself.obj.hospId;//创建医院id
			doctorHospName = dataself.obj.hospName;//责任(评估)医生医院名称
			document.getElementById("result13").value = dataself.obj.userName;//前台显示
			mui.plusReady(function(){
				var self = plus.webview.currentWebview()
					listdata = self.data
					selfdata = JSON.parse(listdata)
					console.log(JSON.stringify(selfdata))
					//赋值
				var date1 = new Date();
				var year1=date1.getFullYear(); 
				var month1=date1.getMonth()+1;
				var day1=date1.getDate();
				var h1=date1.getHours();
				var m1=date1.getMinutes();
				var s1=date1.getSeconds();
					month1 =(month1<10 ? "0"+month1:month1); 
					day1 =(day1<10 ? "0"+day1:day1); 
					h1 =(h1<10 ? "0"+h1:h1); 
					m1 =(m1<10 ? "0"+m1:m1); 
					s1 =(s1<10 ? "0"+s1:s1);
				var newDate = (year1.toString()+'-'+month1.toString()+'-'+day1.toString()+' '+h1.toString()+':'+m1.toString()+':'+s1.toString())
					ehrId = selfdata.ehrId
					if(selfdata.id != undefined){
						id = selfdata.id;
						if(selfdata.visitDate != ""){//随访日期
							var datev = new Date(selfdata.visitDate);
							var yearv=datev.getFullYear(); 
							var monthv=datev.getMonth()+1;
							var dayv=datev.getDate();
								monthv =(monthv<10 ? "0"+monthv:monthv); 
								dayv =(dayv<10 ? "0"+dayv:dayv); 
							var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
							document.getElementById("result11").value = datab;
						}else{
							document.getElementById("result11").value = "";
						}
						if(selfdata.nextDate != ""){//下次随访日期
							var datev = new Date(selfdata.nextDate);
							var yearv=datev.getFullYear(); 
							var monthv=datev.getMonth()+1;
							var dayv=datev.getDate();
								monthv =(monthv<10 ? "0"+monthv:monthv); 
								dayv =(dayv<10 ? "0"+dayv:dayv); 
							var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
							document.getElementById("result12").value = datab;
						}else{
							document.getElementById("result12").value = "";
						}
						doctorName = selfdata.doctorName;
						visitItem = selfdata.visitItem;
						createUser = selfdata.createUser;
						updateUser = selfdata.updateUser;
						createDate = selfdata.createDate;
						updateDate = selfdata.updateDate;
						doctorId = selfdata.doctorId;
						doctorHospId = selfdata.doctorHospId;
						doctorHospName = selfdata.doctorHospName;
						console.log(id)
						mui.ajax(getRequestUrl.url+'/mobile/ehr/childHealthAnswer/getVisitDetail',{
							data:{
								"m_id":id,
								"ehr_id":ehrId
							},
							dataType:'json',//服务器返回json格式数据
							type:'post',//HTTP请求类型
							timeout:10000,//超时时间设置为10秒；
							success:function(data){
								console.log("获取成功")
								var rows = data.rows;
								if (data.status == 1) {
									for(var i=0; i<rows.length; i++){
										if(rows[i].questionId == "373"){//父姓名
											document.getElementById("fa_name").value = rows[i].answer;
										}
										if(rows[i].questionId == "375"){//父职业
											document.getElementById("fa_professional").value = rows[i].answer;
										}
										if(rows[i].questionId == "376"){//父电话
											document.getElementById("fa_tel").value = rows[i].answer;
										}
										if(rows[i].questionId == "374"){//父生日
											if(rows[i].answer != ""){
												var datev = new Date(rows[i].answer);
												var yearv=datev.getFullYear(); 
												var monthv=datev.getMonth()+1;
												var dayv=datev.getDate();
													monthv =(monthv<10 ? "0"+monthv:monthv); 
													dayv =(dayv<10 ? "0"+dayv:dayv); 
												var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
												document.getElementById("result0").value = datab;
											}else{
												document.getElementById("result0").value = "";
											}
										}
										if(rows[i].questionId == "377"){//母姓名
											document.getElementById("mo_name").value = rows[i].answer;
										}
										if(rows[i].questionId == "379"){//母职业
											document.getElementById("mo_professional").value = rows[i].answer;
										}
										if(rows[i].questionId == "380"){//母电话
											document.getElementById("mo_tel").value = rows[i].answer;
										}
										if(rows[i].questionId == "378"){//母生日
											if(rows[i].answer != ""){
												var datev = new Date(rows[i].answer);
												var yearv=datev.getFullYear(); 
												var monthv=datev.getMonth()+1;
												var dayv=datev.getDate();
													monthv =(monthv<10 ? "0"+monthv:monthv); 
													dayv =(dayv<10 ? "0"+dayv:dayv); 
												var datab = (yearv.toString()+'-'+monthv.toString()+'-'+dayv.toString());
												document.getElementById("result1").value = datab;
											}else{
												document.getElementById("result1").value = "";
											}
										}
										if(rows[i].questionId == "381"){//出生孕周
											document.getElementById("week").value = rows[i].answer;
										}
										if(rows[i].questionId == "382"){//母妊娠期患病
											var rowsresult1=resultall.r1;
											for (var j=0; j<rowsresult1.length; j++) {
												if(rows[i].answerId == rowsresult1[j].value){
													document.getElementById("result2").value = rowsresult1[j].text;
												}
												if(rows[i].answerId == 482){
													document.getElementById("other2_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "383"){//母妊娠期患病其他
											document.getElementById("other2_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "384"){//助产机构名称
											document.getElementById("midwifery").value = rows[i].answer;
										}
										if(rows[i].questionId == "385"){//出生情况
											var select1Ynarr = rows[i].answer;
											if(select1Ynarr != null){
												var select1Ynarr_n = select1Ynarr.split(",");
												if(select1Ynarr_n.length != 0){
													$ ("#ularry_1").each (function (){
														$ (this).find ('li').each (function (){
															var y = select1Ynarr_n.length-1;
															for (var i=0; i<select1Ynarr_n.length; i++) {
																if ($(this).val() == select1Ynarr_n[i]) {
											                        $(this).addClass("on");
																	if(select1Ynarr_n[y] == "482"){
																		document.getElementById("check1_id").style.display="block";
																	}else{
																		document.getElementById("check1_id").style.display="none";
																	}
											                    }		
															}
														})
													})	
												}
											}
										}
										if(rows[i].questionId == "386"){//出生情况其他
											document.getElementById("check1").value = rows[i].answer;
										}
										if(rows[i].questionId == "387"){//新生儿窒息
											if(rows[i].answerId != "56"){
												mySwitch0 = "55";
												document.getElementById("mySwitch0").classList.add('mui-active');
											}else{
												document.getElementById("mySwitch0").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "388"){//apgar平分
											var rowsresult2=resultall.r2;
											for (var j=0; j<rowsresult2.length; j++) {
												if(rows[i].answerId == rowsresult2[j].value){
													document.getElementById("result3").value = rowsresult2[j].text;
												}
											}
										}
										if(rows[i].questionId == "389"){//畸形
											if(rows[i].answerId != "56"){
												mySwitch1 = "55";
												document.getElementById("tigshow_doc_1").style.display = "block";
												document.getElementById("mySwitch1").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_1").style.display = "none";
												document.getElementById("mySwitch1").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "390"){//畸形其他
											document.getElementById("doc_1").value = rows[i].answer;
										}
										if(rows[i].questionId == "391"){//新生儿听力筛查
											var rowsresult3=resultall.r3;
											for (var j=0; j<rowsresult3.length; j++) {
												if(rows[i].answerId == rowsresult3[j].value){
													document.getElementById("result4").value = rowsresult3[j].text;
												}
											}
										}
										if(rows[i].questionId == "392"){//新生儿疾病筛查
											var select2Ynarr = rows[i].answer;
											if(select2Ynarr != null){
												var select2Ynarr_n = select2Ynarr.split(",");
												if(select2Ynarr_n.length != 0){
													$ ("#ularry_2").each (function (){
														$ (this).find ('li').each (function (){
															var y = select2Ynarr_n.length-1;
															for (var i=0; i<select2Ynarr_n.length; i++) {
																if ($(this).val() == select2Ynarr_n[i]) {
											                        $(this).addClass("on");
																	if(select2Ynarr_n[i] == "633"){
																		$("#wu-2").siblings().addClass("disable");
																	}else if(select2Ynarr_n[i] == "682"){
																		$("#wu-2-1").siblings().addClass("disable");
																	}else if(select2Ynarr_n[i] == "490"){
																		document.getElementById("check2_id").style.display="block";
																	}else{
																		document.getElementById("check2_id").style.display="none";
																	}
											                    }		
															}
														})
													})	
												}
											}
										}
										if(rows[i].questionId == "393"){//新生儿疾病筛查其他
											document.getElementById("check2").value = rows[i].answer;
										}
										if(rows[i].questionId == "394"){//新生儿出生体重
											document.getElementById("kg").value = rows[i].answer;
										}
										if(rows[i].questionId == "89"){//目前体重
											document.getElementById("kgn").value = rows[i].answer;
										}
										if(rows[i].questionId == "88"){//出生身长
											document.getElementById("cm").value = rows[i].answer;
										}
										if(rows[i].questionId == "395"){//喂养方式
											var rowsresult4=resultall.r4;
											for (var j=0; j<rowsresult4.length; j++) {
												if(rows[i].answerId == rowsresult4[j].value){
													document.getElementById("result5").value = rowsresult4[j].text;
												}
											}
										}
										if(rows[i].questionId == "396"){//吃奶量
											document.getElementById("milk").value = rows[i].answer;
										}
										if(rows[i].questionId == "397"){//吃奶次数
											document.getElementById("milk_n").value = rows[i].answer;
										}
										if(rows[i].questionId == "398"){//呕吐
											if(rows[i].answerId != "56"){
												mySwitch2 = "55";
												document.getElementById("mySwitch2").classList.add('mui-active');
											}else{
												document.getElementById("mySwitch2").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "399"){//大便
											var rowsresult5=resultall.r5;
											for (var j=0; j<rowsresult5.length; j++) {
												if(rows[i].answerId == rowsresult5[j].value){
													document.getElementById("result6").value = rowsresult5[j].text;
												}
												if(rows[i].answerId == 111){
													document.getElementById("other6_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "747"){//大便其他
											document.getElementById("other6_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "400"){//大便次数
											document.getElementById("defecate").value = rows[i].answer;
										}
										if(rows[i].questionId == "82"){//体温
											document.getElementById("temperature").value = rows[i].answer;
										}
										if(rows[i].questionId == "83"){//心率
											document.getElementById("heart").value = rows[i].answer;
										}
										if(rows[i].questionId == "84"){//呼吸频率
											document.getElementById("breath").value = rows[i].answer;
										}
										if(rows[i].questionId == "401"){//面色
											var rowsresult7=resultall.r6;
											for (var j=0; j<rowsresult7.length; j++) {
												if(rows[i].answerId == rowsresult7[j].value){
													document.getElementById("result7").value = rowsresult7[j].text;
												}
												if(rows[i].answerId == 482){
													document.getElementById("other7_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "660"){//面色其他
											document.getElementById("other7_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "402"){//黄疸部位
											var select3Ynarr = rows[i].answer;
											if(select3Ynarr != null){
												var select3Ynarr_n = select3Ynarr.split(",");
												if(select3Ynarr_n.length != 0){
													$ ("#ularry_3").each (function (){
														$ (this).find ('li').each (function (){
															var y = select3Ynarr_n.length-1;
															for (var i=0; i<select3Ynarr_n.length; i++) {
																if ($(this).val() == select3Ynarr_n[i]) {
											                        $(this).addClass("on");
																	if(select3Ynarr_n[y] == "56"){
																		$("#wu-3").siblings().addClass("disable");
																	}
											                    }		
															}
														})
													})	
												}
											}
										}
										if(rows[i].questionId == "403"){//前卤1
											document.getElementById("halogen_1").value = rows[i].answer;
										}
										if(rows[i].questionId == "404"){//前卤2
											document.getElementById("halogen_2").value = rows[i].answer;
										}
										if(rows[i].questionId == "661"){//前卤3
											var rowsresult8=resultall.r7;
											for (var j=0; j<rowsresult8.length; j++) {
												if(rows[i].answerId == rowsresult8[j].value){
													document.getElementById("result8").value = rowsresult8[j].text;
												}
												if(rows[i].answerId == 482){
													document.getElementById("other8_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "405"){//前卤3其他
											document.getElementById("other8_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "406"){//眼睛
											if(rows[i].answerId != "180"){
												mySwitch3 = "181";
												document.getElementById("tigshow_doc_3").style.display = "block";
												document.getElementById("mySwitch3").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_3").style.display = "none";
												document.getElementById("mySwitch3").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "407"){//眼睛1
											document.getElementById("doc_3").value = rows[i].answer;
										}
										if(rows[i].questionId == "408"){//四肢活动度
											if(rows[i].answerId != "180"){
												mySwitch4 = "181";
												document.getElementById("tigshow_doc_4").style.display = "block";
												document.getElementById("mySwitch4").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_4").style.display = "none";
												document.getElementById("mySwitch4").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "409"){//四肢活动度1
											document.getElementById("doc_4").value = rows[i].answer;
										}
										if(rows[i].questionId == "410"){//耳外观
											if(rows[i].answerId != "180"){
												mySwitch5 = "181";
												document.getElementById("tigshow_doc_5").style.display = "block";
												document.getElementById("mySwitch5").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_5").style.display = "none";
												document.getElementById("mySwitch5").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "411"){//耳外观1
											document.getElementById("doc_5").value = rows[i].answer;
										}
										if(rows[i].questionId == "412"){//颈部包块
											if(rows[i].answerId != "56"){
												mySwitch6 = "55";
												document.getElementById("tigshow_doc_6").style.display = "block";
												document.getElementById("mySwitch6").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_6").style.display = "none";
												document.getElementById("mySwitch6").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "413"){//颈部包块1
											document.getElementById("doc_6").value = rows[i].answer;
										}
										if(rows[i].questionId == "414"){//鼻
											if(rows[i].answerId != "180"){
												mySwitch7 = "181";
												document.getElementById("tigshow_doc_7").style.display = "block";
												document.getElementById("mySwitch7").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_7").style.display = "none";
												document.getElementById("mySwitch7").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "415"){//鼻1
											document.getElementById("doc_7").value = rows[i].answer;
										}
										if(rows[i].questionId == "749"){//胸部
											if(rows[i].answerId != "180"){
												mySwitch8 = "181";
												document.getElementById("tigshow_doc_8").style.display = "block";
												document.getElementById("mySwitch8").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_8").style.display = "none";
												document.getElementById("mySwitch8").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "750"){//胸部1
											document.getElementById("doc_8").value = rows[i].answer;
										}
										if(rows[i].questionId == "110"){//皮肤
											var rowsresult9=resultall.r8;
											for (var j=0; j<rowsresult9.length; j++) {
												if(rows[i].answerId == rowsresult9[j].value){
													document.getElementById("result9").value = rowsresult9[j].text;
												}
												if(rows[i].answerId == 482){
													document.getElementById("other9_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "111"){//皮肤其他
											document.getElementById("other9_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "416"){//口腔
											if(rows[i].answerId != "180"){
												mySwitch9 = "181";
												document.getElementById("tigshow_doc_9").style.display = "block";
												document.getElementById("mySwitch9").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_9").style.display = "none";
												document.getElementById("mySwitch9").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "417"){//口腔1
											document.getElementById("doc_9").value = rows[i].answer;
										}
										if(rows[i].questionId == "418"){//肛门
											if(rows[i].answerId != "180"){
												mySwitch10 = "181";
												document.getElementById("tigshow_doc_10").style.display = "block";
												document.getElementById("mySwitch10").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_10").style.display = "none";
												document.getElementById("mySwitch10").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "419"){//肛门1
											document.getElementById("doc_10").value = rows[i].answer;
										}
										if(rows[i].questionId == "420"){//心肺听诊
											if(rows[i].answerId != "180"){
												mySwitch11 = "181";
												document.getElementById("tigshow_doc_11").style.display = "block";
												document.getElementById("mySwitch11").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_11").style.display = "none";
												document.getElementById("mySwitch11").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "421"){//心肺听诊1
											document.getElementById("doc_11").value = rows[i].answer;
										}
										if(rows[i].questionId == "422"){//外生殖器
											if(rows[i].answerId != "180"){
												mySwitch12 = "181";
												document.getElementById("tigshow_doc_12").style.display = "block";
												document.getElementById("mySwitch12").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_12").style.display = "none";
												document.getElementById("mySwitch12").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "423"){//外生殖器1
											document.getElementById("doc_12").value = rows[i].answer;
										}
										if(rows[i].questionId == "424"){//腹部触诊
											if(rows[i].answerId != "180"){
												mySwitch13 = "181";
												document.getElementById("tigshow_doc_13").style.display = "block";
												document.getElementById("mySwitch13").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_13").style.display = "none";
												document.getElementById("mySwitch13").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "425"){//腹部触诊1
											document.getElementById("doc_13").value = rows[i].answer;
										}
										if(rows[i].questionId == "426"){//脊柱
											if(rows[i].answerId != "180"){
												mySwitch14 = "181";
												document.getElementById("tigshow_doc_14").style.display = "block";
												document.getElementById("mySwitch14").classList.add('mui-active');
											}else{
												document.getElementById("tigshow_doc_14").style.display = "none";
												document.getElementById("mySwitch14").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "427"){//脊柱1
											document.getElementById("doc_14").value = rows[i].answer;
										}
										if(rows[i].questionId == "428"){//脐带
											var rowsresult10=resultall.r9;
											for (var j=0; j<rowsresult10.length; j++) {
												if(rows[i].answerId == rowsresult10[j].value){
													document.getElementById("result10").value = rowsresult10[j].text;
												}
												if(rows[i].answerId == 482){
													document.getElementById("other10_op").style.display="block";
												}
											}
										}
										if(rows[i].questionId == "429"){//脐带其他
											document.getElementById("other10_text").value = rows[i].answer;
										}
										if(rows[i].questionId == "332"){//转诊
											if(rows[i].answerId != "56"){
												mySwitch15 = "55";
												document.getElementById("zz").style.display = "block";
												document.getElementById("mySwitch15").classList.add('mui-active');
											}else{
												document.getElementById("zz").style.display = "none";
												document.getElementById("mySwitch15").classList.remove('mui-active');
											}
										}
										if(rows[i].questionId == "333"){//原因
											document.getElementById("zz_why").value = rows[i].answer;
										}
										if(rows[i].questionId == "334"){//科室
											document.getElementById("zz_det").value = rows[i].answer;
										}
										if(rows[i].questionId == "430"){//指导
											var select4Ynarr = rows[i].answer;
											if(select4Ynarr != null){
												var select4Ynarr_n = select4Ynarr.split(",");
												if(select4Ynarr_n.length != 0){
													$ ("#ularry_4").each (function (){
														$ (this).find ('li').each (function (){
															var y = select4Ynarr_n.length-1;
															for (var i=0; i<select4Ynarr_n.length; i++) {
																if ($(this).val() == select4Ynarr_n[i]) {
											                        $(this).addClass("on");
																	if(select4Ynarr_n[y] == "111"){
																		document.getElementById("zd_id").style.display="block";
																	}else{
																		document.getElementById("zd_id").style.display="none";
																	}
											                    }		
															}
														})
													})	
												}
											}
										}
										if(rows[i].questionId == "748"){//指导其他
											document.getElementById("zd").value = rows[i].answer;
										}
										if(rows[i].questionId == "735"){//中医
											var select5Ynarr = rows[i].answer;
											if(select4Ynarr != null){
												var select5Ynarr_n = select5Ynarr.split(",");
												if(select5Ynarr_n.length != 0){
													$ ("#ularry_5").each (function (){
														$ (this).find ('li').each (function (){
															var y = select5Ynarr_n.length-1;
															for (var i=0; i<select5Ynarr_n.length; i++) {
																if ($(this).val() == select5Ynarr_n[i]) {
											                        $(this).addClass("on");
																	if(select5Ynarr_n[y] == "482"){
																		document.getElementById("zy_id").style.display="block";
																	}else{
																		document.getElementById("zy_id").style.display="none";
																	}
											                    }		
															}
														})
													})	
												}
											}
										}
										if(rows[i].questionId == "736"){//中医其他
											document.getElementById("zy").value = rows[i].answer;
										}
										if(rows[i].questionId == "431"){//下次随访地点
											document.getElementById("place").value = rows[i].answer;
										}
									}
								} else {
									
								}
							},
							error:function(xhr,type,errorThrown){
								
							}
						});	
					}else{
						visitDate = newDate;//随访时间
						doctorName = dataself.obj.userName;
						createUser = dataself.obj.id;
						updateUser = dataself.obj.id;
						createDate = newDate;
						updateDate = newDate;
						doctorId = dataself.obj.id;
						doctorHospId = dataself.obj.hospId;
						doctorHospName = dataself.obj.hospName;
					};
			});	
			//内容字段部分
			mui.init()
				(function($) {
				$.init();
				var result = $('#result')[0];
				var btns = $('.btn');
				btns.each(function(i, btn) {
					btn.addEventListener('tap', function() {
						var _self = this;
						if(_self.picker) {
							_self.picker.show(function (rs) {
								result.innerText = rs.text;
								_self.picker.dispose();
								_self.picker = null;
							});
						} else {
							if(i == 2){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'56',text:'无'},{value:'44',text:'糖尿病'},{value:'486',text:'妊娠期高血压'},{value:'482',text:'其他'}]);
								 picker.show(function (selectItems) {
									$('#result'+i)[0].value = selectItems[0].text;
									if(selectItems[0].text == "其他"){
										document.getElementById("other2_op").style.display="block";
									}else{
										document.getElementById("other2_op").style.display="none";
										$("#other2_text")[0].value = "";
									}
								  })
							}else if(i == 3){
								var picker = new mui.PopPicker();
								picker.setData([{value:'0',text:' '},{value:'324',text:'1分钟'},{value:'325',text:'5分钟'},{value:'16',text:'不详'}]);
								picker.show(function (selectItems) {
									$('#result'+i)[0].value = selectItems[0].text;
								})
							}else if(i == 4){
								var picker = new mui.PopPicker();
								picker.setData([{value:'0',text:' '},{value:'326',text:'通过'},{value:'327',text:'未通过'},{value:'328',text:'未筛查'},{value:'16',text:'不详'}]);
								picker.show(function (selectItems) {
									$('#result'+i)[0].value = selectItems[0].text;
								})
							}else if(i == 5){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'332',text:'纯母乳'},{value:'334',text:'混合'},{value:'333',text:'人工'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else if(i == 6){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'491',text:'糊状'},{value:'192',text:'稀'},{value:'111',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
									 if(selectItems[0].text == "其他"){
									 	document.getElementById("other6_op").style.display="block";
									 }else{
									 	document.getElementById("other6_op").style.display="none";
										$("#other6_text")[0].value = "";
									 }
								  })
							}else if(i == 7){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'114',text:'红润'},{value:'138',text:'黄染'},{value:'482',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
									 if(selectItems[0].text == "其他"){
									 	document.getElementById("other7_op").style.display="block";
									 }else{
									 	document.getElementById("other7_op").style.display="none";
										$("#other7_text")[0].value = "";
									 }
								  })
							}else if(i == 8){
								var picker = new mui.PopPicker();
								picker.setData([{value:'0',text:' '},{value:'149',text:'正常'},{value:'497',text:'膨隆'},{value:'498',text:'凹陷'},{value:'482',text:'其他'}]);
								picker.show(function (selectItems) {
									$('#result'+i)[0].value = selectItems[0].text;
									if(selectItems[0].text == "其他"){
										document.getElementById("other8_op").style.display="block";
									}else{
										document.getElementById("other8_op").style.display="none";
										$("#other8_text")[0].value = "";
									}
								})
							}else if(i == 9){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'180',text:'未见异常'},{value:'499',text:'湿疹'},{value:'500',text:'糜烂'},{value:'482',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
									 if(selectItems[0].text == "其他"){
									 	document.getElementById("other9_op").style.display="block";
									 }else{
									 	document.getElementById("other9_op").style.display="none";
										$("#other9_text")[0].value = "";
									 }
								  })
							}else if(i == 10){
								var picker = new mui.PopPicker();
								 picker.setData([{value:'0',text:' '},{value:'501',text:'未脱'},{value:'502',text:'脱落'},{value:'503',text:'脐部有渗出'},{value:'482',text:'其他'}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
									 if(selectItems[0].text == "其他"){
									 	document.getElementById("other10_op").style.display="block";
									 }else{
									 	document.getElementById("other10_op").style.display="none";
										$("#other10_text")[0].value = "";
									 }
								  })
							}else if(i == 13){
								var picker = new mui.PopPicker();
								 picker.setData([{value:dataself.obj.id,text:dataself.obj.userName}]);
								 picker.show(function (selectItems) {
									 $('#result'+i)[0].value = selectItems[0].text;
								  })
							}else{
								var optionsJson = this.getAttribute('data-options') || '{}';
								var options = JSON.parse(optionsJson);
								var id = this.getAttribute('id');
								/*
								 * 首次显示时实例化组件
								 * 示例为了简洁，将 options 放在了按钮的 dom 上
								 * 也可以直接通过代码声明 optinos 用于实例化 DtPicker
								 */
								_self.picker = new $.DtPicker(options);
								_self.picker.show(function(rs) {
									/*
									 * rs.value 拼合后的 value
									 * rs.text 拼合后的 text
									 * rs.y 年，可以通过 rs.y.vaue 和 rs.y.text 获取值和文本
									 * rs.m 月，用法同年
									 * rs.d 日，用法同年
									 * rs.h 时，用法同年
									 * rs.i 分（minutes 的第二个字母），用法同年
									 */
									$('#result'+i)[0].value = rs.text;
									/* 
									 * 返回 false 可以阻止选择框的关闭
									 * return false;
									 */
									/*
									 * 释放组件资源，释放后将将不能再操作组件
									 * 通常情况下，不需要示放组件，new DtPicker(options) 后，可以一直使用。
									 * 当前示例，因为内容较多，如不进行资原释放，在某些设备上会较慢。
									 * 所以每次用完便立即调用 dispose 进行释放，下次用时再创建新实例。
									 */
									_self.picker.dispose();
									_self.picker = null;
								});
							}
						}
					}, false);
				});
			})(mui);
			//切换
			document.getElementById("mySwitch16").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_1").style.display="none";
					document.getElementById("tigshow_doc_2").style.display="block";
					doctorHospId = "0";//签名医生医院id
					doctorHospName = document.getElementById("text-hosp").value;//签名医生医院名字
					doctorId = "0";//签名医生id
					doctorName = document.getElementById("text-doc").value;//签名医生姓名
				}else{
					document.getElementById("tigshow_doc_1").style.display="block";
					document.getElementById("tigshow_doc_2").style.display="none";
					if(doctorId == ""){
						doctorHospId = "";//签名医生医院id
						doctorHospName = "";//签名医生医院名字
						doctorId = "";//签名医生id
						doctorName = "";//签名医生姓名
					}
				}
			})
			//切换
			var mySwitch0 = "56",
				mySwitch1 = "56",
				mySwitch2 = "56",
				mySwitch3 = "180",
				mySwitch4 = "180",
				mySwitch5 = "180",
				mySwitch6 = "56",
				mySwitch7 = "180",
				mySwitch8 = "180",
				mySwitch9 = "180",
				mySwitch10 = "180",
				mySwitch11 = "180",
				mySwitch12 = "180",
				mySwitch13 = "180",
				mySwitch14 = "180",
				mySwitch15 = "56";
			document.getElementById("mySwitch0").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_0").style.display="block";
					mySwitch0 = "55";
				}else{
					document.getElementById("tigshow_doc_0").style.display="none";
					mySwitch0 = "56";
					$("#doc_0").val("");
				}
			});
			document.getElementById("mySwitch1").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_1").style.display="block";
					mySwitch1 = "55";
				}else{
					document.getElementById("tigshow_doc_1").style.display="none";
					mySwitch1 = "56";
					$("#doc_1").val("");
				}
			});
			document.getElementById("mySwitch2").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					mySwitch2 = "55";
				}else{
					mySwitch2 = "56";
				}
			});
			document.getElementById("mySwitch3").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_3").style.display="block";
					mySwitch3 = "181";
				}else{
					document.getElementById("tigshow_doc_3").style.display="none";
					mySwitch3 = "180";
					$("#doc_3").val("");
				}
			});
			document.getElementById("mySwitch4").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_4").style.display="block";
					mySwitch4 = "181";
				}else{
					document.getElementById("tigshow_doc_4").style.display="none";
					mySwitch4 = "180";
					$("#doc_4").val("");
				}
			});
			document.getElementById("mySwitch5").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_5").style.display="block";
					mySwitch5 = "181";
				}else{
					document.getElementById("tigshow_doc_5").style.display="none";
					mySwitch5 = "180";
					$("#doc_5").val("");
				}
			});
			document.getElementById("mySwitch6").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_6").style.display="block";
					mySwitch6 = "55";
				}else{
					document.getElementById("tigshow_doc_6").style.display="none";
					mySwitch6 = "56";
					$("#doc_6").val("");
				}
			});
			document.getElementById("mySwitch7").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_7").style.display="block";
					mySwitch7 = "181";
				}else{
					document.getElementById("tigshow_doc_7").style.display="none";
					mySwitch7 = "180";
					$("#doc_7").val("");
				}
			});
			document.getElementById("mySwitch8").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_8").style.display="block";
					mySwitch8 = "181";
				}else{
					document.getElementById("tigshow_doc_8").style.display="none";
					mySwitch8 = "180";
					$("#doc_8").val("");
				}
			});
			document.getElementById("mySwitch9").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_9").style.display="block";
					mySwitch9 = "181";
				}else{
					document.getElementById("tigshow_doc_9").style.display="none";
					mySwitch9 = "180";
					$("#doc_9").val("");
				}
			});
			document.getElementById("mySwitch10").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_10").style.display="block";
					mySwitch10 = "181";
				}else{
					document.getElementById("tigshow_doc_10").style.display="none";
					mySwitch10 = "180";
					$("#doc_10").val("");
				}
			});
			document.getElementById("mySwitch11").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_11").style.display="block";
					mySwitch11 = "181";
				}else{
					document.getElementById("tigshow_doc_11").style.display="none";
					mySwitch11 = "180";
					$("#doc_11").val("");
				}
			});
			document.getElementById("mySwitch12").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_12").style.display="block";
					mySwitch12 = "181";
				}else{
					document.getElementById("tigshow_doc_12").style.display="none";
					mySwitch12 = "180";
					$("#doc_12").val("");
				}
			});
			document.getElementById("mySwitch13").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_13").style.display="block";
					mySwitch13 = "181";
				}else{
					document.getElementById("tigshow_doc_13").style.display="none";
					mySwitch13 = "180";
					$("#doc_13").val("");
				}
			});
			document.getElementById("mySwitch14").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("tigshow_doc_14").style.display="block";
					mySwitch14 = "181";
				}else{
					document.getElementById("tigshow_doc_14").style.display="none";
					mySwitch14 = "180";
					$("#doc_14").val("");
				}
			});
			document.getElementById("mySwitch15").addEventListener("toggle",function(event){
				if(event.detail.isActive){
					document.getElementById("zz").style.display="block";
					mySwitch15 = "55";
				}else{
					document.getElementById("zz").style.display="none";
					mySwitch15 = "56";
					$("#zz_why").val("");
					$("#zz_det").val("");
				}
			});
			//复选框事件
			mui('.mui-ul-check').on('tap', 'li', function(e) {
				var text = this.getAttribute('text');
				var id = this.getAttribute('id');
				var remove_class = this.getAttribute('class');
				if(!this.getAttribute('class')){
					this.classList.add('on');
					if(id == "wu-2"){
						$ ("#ularry_2").find ('.on').each (function (){
							this.classList.remove('on');
							$("#check2_id").hide();
							$("#check2").val("");
							$("#wu-2").siblings().addClass("disable");
							$("#wu-2")[0].classList.add('on');
						});
					}else if(id == "wu-2-1"){
						$ ("#ularry_2").find ('.on').each (function (){
							this.classList.remove('on');
							$("#check2_id").hide();
							$("#check2").val("");
							$("#wu-2-1").siblings().addClass("disable");
							$("#wu-2-1")[0].classList.add('on');
						});
					}else if(id == "wu-3"){
						$ ("#ularry_3").find ('.on').each (function (){
							this.classList.remove('on');
							$("#wu-3").siblings().addClass("disable");
							$("#wu-3")[0].classList.add('on');
						});
					}
					if(text == "出生情况其他"){
						$("#check1_id").show();
					}else if(text == "其他遗传代谢病"){
						$("#check2_id").show()
					}else if(text == "中医其他"){
						$("#zy_id").show()
					}else if(text == "指导其他"){
						$("#zd_id").show()
					}
				}else{
					this.classList.remove('on');
					if(id == "wu-2"){
						$("#wu-2").siblings().removeClass("disable");
					}else if(id == "wu-2-1"){
						$("#wu-2-1").siblings().removeClass("disable");
					}else if(id == "wu-3"){
						$("#wu-3").siblings().removeClass("disable");
					}
					if(text == "出生情况其他" && remove_class){
						$("#check1_id").hide();
						$("#check1").val("");
					}else if(text == "其他遗传代谢病" && remove_class){
						$("#check2_id").hide();
						$("#check2").val("");
					}else if(text == "中医其他" && remove_class){
						$("#zy_id").hide();
						$("#zy").val("");
					}else if(text == "指导其他"  && remove_class){
						$("#zd_id").hide();
						$("#zd").val("");
					}
				}
			});
			//提交
			var select1 = "",
				select2 = "",
				select3 = "",
				select4 = "",
				select5 = "";
			function submit(){
				if($("#result11")[0].value == ""){
					alert("请输入随访时间")
				}else if($("#result12")[0].value == ""){
					alert("请输入下次随访时间")
				}else if($("#result13")[0].value == "" && $("#text-doc")[0].value == ""){
					alert("请输入医生签名")
				}else{
					alert("可以提交")
					if($("#result11")[0].value != ""){
						visitDate = $("#result11")[0].value+" 00:00:00";
					}else{
						visitDate = "";
					}
					if($("#result12")[0].value != ""){
						nextDate = $("#result12")[0].value+" 00:00:00";
					}else{
						nextDate = "";
					}
					if($("#result0")[0].value != ""){
						result0 = $("#result0")[0].value+" 00:00:00";
					}else{
						result0 = "";
					}
					if($("#result1")[0].value != ""){
						result1 = $("#result1")[0].value+" 00:00:00";
					}else{
						result1 = "";
					}
					var result2_arr = $('#result2')[0].value;
					for(var re=0; re<resultall.r1.length; re++){
						if(result2_arr == resultall.r1[re].text){
							result2 = resultall.r1[re].value;
						};
					};
					var result3_arr = $('#result3')[0].value;
					for(var re=0; re<resultall.r2.length; re++){
						if(result3_arr == resultall.r2[re].text){
							result3 = resultall.r2[re].value;
						};
					};
					var result4_arr = $('#result4')[0].value;
					for(var re=0; re<resultall.r3.length; re++){
						if(result4_arr == resultall.r3[re].text){
							result4 = resultall.r3[re].value;
						};
					};
					var result5_arr = $('#result5')[0].value;
					for(var re=0; re<resultall.r4.length; re++){
						if(result5_arr == resultall.r4[re].text){
							result5 = resultall.r4[re].value;
						};
					};
					var result6_arr = $('#result6')[0].value;
					for(var re=0; re<resultall.r5.length; re++){
						if(result6_arr == resultall.r5[re].text){
							result6 = resultall.r5[re].value;
						};
					};
					var result7_arr = $('#result7')[0].value;
					for(var re=0; re<resultall.r6.length; re++){
						if(result7_arr == resultall.r6[re].text){
							result7 = resultall.r6[re].value;
						};
					};
					var result8_arr = $('#result8')[0].value;
					for(var re=0; re<resultall.r7.length; re++){
						if(result8_arr == resultall.r7[re].text){
							result8 = resultall.r7[re].value;
						};
					};
					var result9_arr = $('#result9')[0].value;
					for(var re=0; re<resultall.r8.length; re++){
						if(result9_arr == resultall.r8[re].text){
							result9 = resultall.r8[re].value;
						};
					};
					var result10_arr = $('#result10')[0].value;
					for(var re=0; re<resultall.r9.length; re++){
						if(result10_arr == resultall.r9[re].text){
							result10 = resultall.r9[re].value;
						};
					};
					//多选1
					select1 = "";
					$ ("#ularry_1").find ('.on').each (function (){
						if($(this).length != 0){
							select1 += $(this).val() + ",";	
						}
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (select1.length > 0) {
						select1 = select1.substr(0,select1.length - 1);
					}else{
						select1 = "";
					}
					//多选2
					select2 = "";
					$ ("#ularry_2").find ('.on').each (function (){
						if($(this).length != 0){
							select2 += $(this).val() + ",";	
						}
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (select2.length > 0) {
						select2 = select2.substr(0,select2.length - 1);
					}else{
						select2 = "";
					}
					//多选3
					select3 = "";
					$ ("#ularry_3").find ('.on').each (function (){
						if($(this).length != 0){
							select3 += $(this).val() + ",";	
						}
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (select3.length > 0) {
						select3 = select3.substr(0,select3.length - 1);
					}else{
						select3 = "";
					}
					//多选4
					select4 = "";
					$ ("#ularry_4").find ('.on').each (function (){
						if($(this).length != 0){
							select4 += $(this).val() + ",";	
						}
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (select4.length > 0) {
						select4 = select4.substr(0,select4.length - 1);
					}else{
						select4 = "";
					}
					//多选5
					select5 = "";
					$ ("#ularry_5").find ('.on').each (function (){
						if($(this).length != 0){
							select5 += $(this).val() + ",";	
						}
					});
					//去掉最后一个逗号(如果不需要去掉，就不用写)
					if (select5.length > 0) {
						select5 = select5.substr(0,select5.length - 1);
					}else{
						select5 = "";
					}
					var data_object =[
						//父姓名
						{
						questionId:"373",
						answerId:0,
						answer:$('#fa_name').val()
						},
						//父职业
						{
						questionId:"375",
						answerId:0,
						answer:$('#fa_professional').val()
						},
						//父电话
						{
						questionId:"376",
						answerId:0,
						answer:$('#fa_tel').val()
						},
						//父生日
						{
						questionId:"374",
						answerId:0,
						answer:result0
						},
						//母姓名
						{
						questionId:"377",
						answerId:0,
						answer:$('#mo_name').val()
						},
						//母职业
						{
						questionId:"379",
						answerId:0,
						answer:$('#mo_professional').val()
						},
						//母电话
						{
						questionId:"380",
						answerId:0,
						answer:$('#mo_tel').val()
						},
						//母生日
						{
						questionId:"378",
						answerId:0,
						answer:result1
						},
						//出生孕周
						{
						questionId:"381",
						answerId:0,
						answer:$('#week').val()
						},
						//母妊娠期患病
						{
						questionId:"382",
						answerId:result2,
						answer:null
						},
						//母妊娠期患病其他
						{
						questionId:"383",
						answerId:0,
						answer:$('#other2_text').val()
						},
						//助产机构名称
						{
						questionId:"384",
						answerId:0,
						answer:$('#midwifery').val()
						},
						//出生情况
						{
						questionId:"385",
						answerId:0,
						answer:select1
						},
						//出生情况1
						{
						questionId:"386",
						answerId:0,
						answer:$('#check1').val()
						},
						//新生儿窒息
						{
						questionId:"387",
						answerId:mySwitch0,
						answer:null
						},
						//apgar平分
						{
						questionId:"388",
						answerId:result3,
						answer:null
						},
						//畸形
						{
						questionId:"389",
						answerId:mySwitch1,
						answer:null
						},
						//畸形1
						{
						questionId:"390",
						answerId:0,
						answer:$('#doc_1').val()
						},
						//新生儿听力筛查
						{
						questionId:"391",
						answerId:result4,
						answer:null
						},
						//新生儿疾病筛查
						{
						questionId:"392",
						answerId:0,
						answer:select2
						},
						//新生儿疾病筛查1
						{
						questionId:"393",
						answerId:0,
						answer:$('#check2').val()
						},
						//新生儿出生体重
						{
						questionId:"394",
						answerId:0,
						answer:$('#kg').val()
						},
						//目前体重
						{
						questionId:"89",
						answerId:0,
						answer:$('#kgn').val()
						},
						//出生身长
						{
						questionId:"88",
						answerId:0,
						answer:$('#cm').val()
						},
						//喂养方式
						{
						questionId:"395",
						answerId:result5,
						answer:null
						},
						//吃奶量
						{
						questionId:"396",
						answerId:0,
						answer:$('#milk').val()
						},
						//吃奶次数
						{
						questionId:"397",
						answerId:0,
						answer:$('#milk_n').val()
						},
						//呕吐
						{
						questionId:"398",
						answerId:mySwitch2,
						answer:null
						},
						//大便
						{
						questionId:"399",
						answerId:result6,
						answer:null
						},
						//大便其他
						{
						questionId:"747",
						answerId:0,
						answer:$('#other6_text').val()
						},
						//大便次数
						{
						questionId:"400",
						answerId:0,
						answer:$('#defecate').val()
						},
						//体温
						{
						questionId:"82",
						answerId:0,
						answer:$('#temperature').val()
						},
						//心率
						{
						questionId:"83",
						answerId:0,
						answer:$('#heart').val()
						},
						//呼吸频率
						{
						questionId:"84",
						answerId:0,
						answer:$('#breath').val()
						},
						//面色
						{
						questionId:"401",
						answerId:result7,
						answer:null
						},
						//面色其他
						{
						questionId:"660",
						answerId:0,
						answer:$('#other7_text').val()
						},
						//黄疸部位
						{
						questionId:"402",
						answerId:0,
						answer:select3
						},
						//前卤1
						{
						questionId:"403",
						answerId:0,
						answer:$('#halogen_1').val()
						},
						//前卤2
						{
						questionId:"404",
						answerId:0,
						answer:$('#halogen_2').val()
						},
						//前卤3
						{
						questionId:"661",
						answerId:result8,
						answer:null
						},
						//前卤3其他
						{
						questionId:"405",
						answerId:0,
						answer:$('#other8_text').val()
						},
						//眼睛
						{
						questionId:"406",
						answerId:mySwitch3,
						answer:null
						},
						//眼睛1
						{
						questionId:"407",
						answerId:0,
						answer:$('#doc_3').val()
						},
						//四肢活动度
						{
						questionId:"408",
						answerId:mySwitch4,
						answer:null
						},
						//四肢活动度1
						{
						questionId:"409",
						answerId:0,
						answer:$('#doc_4').val()
						},
						//耳外观
						{
						questionId:"410",
						answerId:mySwitch5,
						answer:null
						},
						//耳外观1
						{
						questionId:"411",
						answerId:0,
						answer:$('#doc_5').val()
						},
						//颈部包块
						{
						questionId:"412",
						answerId:mySwitch6,
						answer:null
						},
						//颈部包块1
						{
						questionId:"413",
						answerId:0,
						answer:$('#doc_6').val()
						},
						//鼻
						{
						questionId:"414",
						answerId:mySwitch7,
						answer:null
						},
						//鼻1
						{
						questionId:"415",
						answerId:0,
						answer:$('#doc_7').val()
						},
						//胸部
						{
						questionId:"749",
						answerId:mySwitch8,
						answer:null
						},
						//胸部1
						{
						questionId:"750",
						answerId:0,
						answer:$('#doc_8').val()
						},
						//皮肤
						{
						questionId:"110",
						answerId:result9,
						answer:null
						},
						//皮肤1
						{
						questionId:"111",
						answerId:0,
						answer:$('#other9_text').val()
						},
						//口腔
						{
						questionId:"416",
						answerId:mySwitch9,
						answer:null
						},
						//口腔1
						{
						questionId:"417",
						answerId:0,
						answer:$('#doc_9').val()
						},
						//肛门
						{
						questionId:"418",
						answerId:mySwitch10,
						answer:null
						},
						//肛门1
						{
						questionId:"419",
						answerId:0,
						answer:$('#doc_10').val()
						},
						//心肺听诊
						{
						questionId:"420",
						answerId:mySwitch11,
						answer:null
						},
						//心肺听诊1
						{
						questionId:"421",
						answerId:0,
						answer:$('#doc_11').val()
						},
						//外生殖器
						{
						questionId:"422",
						answerId:mySwitch12,
						answer:null
						},
						//外生殖器1
						{
						questionId:"423",
						answerId:0,
						answer:$('#doc_12').val()
						},
						//腹部触诊
						{
						questionId:"424",
						answerId:mySwitch13,
						answer:null
						},
						//腹部触诊1
						{
						questionId:"425",
						answerId:0,
						answer:$('#doc_13').val()
						},
						//脊柱
						{
						questionId:"426",
						answerId:mySwitch14,
						answer:null
						},
						//脊柱1
						{
						questionId:"427",
						answerId:0,
						answer:$('#doc_14').val()
						},
						//脐带
						{
						questionId:"428",
						answerId:result10,
						answer:null
						},
						//脐带1
						{
						questionId:"429",
						answerId:0,
						answer:$('#other10_text').val()
						},
						//转诊
						{
						questionId:"332",
						answerId:mySwitch15,
						answer:null
						},
						//原因
						{
						questionId:"333",
						answerId:0,
						answer:$('#zz_why').val()
						},
						//科室
						{
						questionId:"334",
						answerId:0,
						answer:$('#zz_det').val()
						},
						//指导
						{
						questionId:"430",
						answerId:0,
						answer:select4
						},
						//指导其它
						{
						questionId:"748",
						answerId:0,
						answer:$('#zd').val()
						},
						//中医
						{
						questionId:"735",
						answerId:0,
						answer:select5
						},
						//中医其它
						{
						questionId:"736",
						answerId:0,
						answer:$('#zy').val()
						},
						//下次随访地点
						{
						questionId:"431",
						answerId:0,
						answer:$('#place').val()
						}
					]
					$.ajax(getRequestUrl.url+"/mobile/ehr/ChildHealth/addOrUpdate",{
						data:{
							id : id,
							ehrId : ehrId, 
							visitLevel : visitLevel,
							doctorName : doctorName,
							visitDate : visitDate,
							nextDate : nextDate,
							createUser : createUser,
							updateUser : updateUser,
							createDate : createDate, 
							updateDate : updateDate,
							enableFlag : enableFlag,
							doctorId : doctorId,
							doctorHospId : doctorHospId,
							ageMonth : ageMonth,
							doctorHospName : doctorHospName,
							kindergarten : kindergarten,
							xkSign : xkSign,
							versionNum : versionNum,
							readcardCheck : readcardCheck
							},
						dataType:'json',//服务器返回json格式数据
						type:'post',//HTTP请求类型
						timeout:10000,//超时时间设置为10秒；
						success:function(data){
							console.log("成功1")
							var mid = data.total;
							console.log(mid)
							for(var i=0; i<data_object.length; i++){
								data_object[i].ehrId = ehrId;
								data_object[i].childId = mid;
							}
							console.log(JSON.stringify(data_object[0]))
							$.ajax(getRequestUrl.url+"/mobile/ehr/childHealthAnswer/addOrUpdate",{
								data:JSON.stringify(data_object),
								dataType:'json',//服务器返回json格式数据
								type:'post',//HTTP请求类型
								contentType : 'application/json;charset=utf-8',
								success:function(data){
									console.log("成功")
								},
								error:function(xhr,type,errorThrown){
									
								}
							});	
						},
						error:function(xhr,type,errorThrown){
							
						}
					});
				}
			}
		</script>
	</body>
</html>